package obj.day3.test2;

/**
 * @author げっしょく
 * @date 2021/7/18
 */
public class Test1 {
    public static void main(String[] args) {
        gopiao(new Swiming() {
            @Override
            public void swiming() {
                System.out.println("bao , wo jin tian la xi le ");
            }
        });
        gopiao(() ->
            System.out.println("la de shen me xi")
        );
        gopiao(() -> System.out.println("ni ai he de an mu xi "));
        /*gopiao(() -> {
            System.out.println("wo lai zhua ni le");
        });*/
    }
    public static void gopiao(Swiming swiming){
        swiming.swiming();
    }
}

interface Swiming{
    void swiming();
}